DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'root'
PASSWORD = 'root'
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'eduai'

#- main.py - 应用入口层：负责启动应用和基础配置
# - models/ - 数据模型层：负责数据库操作和业务逻辑
# - routes/ - 路由控制层：负责处理HTTP请求和响应
# - config.py - 配置层：统一管理应用配置
#mysql 不会认识utf-8,而需要直接写成utf8
SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT,DRIVER,USERNAME,PASSWORD,HOST,PORT,DATABASE)
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True
